<?php

/*
 * themes page
 * Author: Bumoni
 * Created on :14/5/2011
 * Revision histor:
 */


session_start();

include("includes/db.class.php");
include("includes/dbtransction.php");
include("includes/validate.php");

$db=new database; //initializing the database access class
?>
<html>
    <head>
        <title>Card - Home</title>
        <link rel=StyleSheet href="css/header.css" type="text/css" media=screen></link>
        <link rel=StyleSheet href="css/content.css" type="text/css" media=screen></link>
        
        <link href="../style.css" rel="stylesheet" type="text/css" />

<!--
  jQuery library
-->
<script type="text/javascript" src="jsor-jcarousel/lib/jquery-1.4.2.min.js"></script>

<!--
  jCarousel library
-->
<script type="text/javascript" src="jsor-jcarousel/lib/jquery.jcarousel.js"></script>

<!--
  jCarousel skin stylesheet
-->
<link rel="stylesheet" type="text/css" href="jsor-jcarousel/skins/ie7/skin.css" />

<script type="text/javascript">

var mycarousel_itemList = [
    {url: "http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg", title: "Flower1", link: "www.google.com"},
    {url: "http://static.flickr.com/75/199481072_b4a0d09597_s.jpg", title: "Flower2", link: "www.facebook.com"},
    {url: "http://static.flickr.com/57/199481087_33ae73a8de_s.jpg", title: "Flower3", link: "www.google.com" },
    {url: "http://static.flickr.com/77/199481108_4359e6b971_s.jpg", title: "Flower4", link: "www.google.com"},
    {url: "http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg", title: "Flower5", link: "www.google.com"},
    {url: "http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg", title: "Flower6", link: "www.google.com"},
    {url: "http://static.flickr.com/58/199481218_264ce20da0_s.jpg", title: "Flower7", link: "www.google.com"},
    {url: "http://static.flickr.com/69/199481255_fdfe885f87_s.jpg", title: "Flower8", link: "www.google.com"},
    {url: "http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg", title: "Flower9", link: "www.google.com"},
    {url: "http://static.flickr.com/70/229228324_08223b70fa_s.jpg", title: "Flower10", link: "www.google.com"}
];

function mycarousel_itemLoadCallback(carousel, state)
{
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) {
            continue;
        }

        if (i > mycarousel_itemList.length) {
            break;
        }

        carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[i-1]));
    }
};

/**
 * Item html creation helper.
 */
function mycarousel_getItemHTML(item)
{
    return '<a href="'+item.link+'"><img src="' + item.url + '" border= "0" width="75" height="75" alt="' + item.url + '" /></a>';
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        size: mycarousel_itemList.length,
        itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
    });
});

</script>

    </head>
    <body>
<?php
include('includes/header.php');
?>
        <div class="rootBody">
               <table>
                <tr>
                  <td>
                    Choose Theme  
                </td>
                  <td rowspan="2">
                    <div>
                <ul id="mycarousel" class="jcarousel-skin-ie7">
    <!-- The content will be dynamically loaded in here -->
  </ul>
        </div>
                </td>
                </tr>
              <tr>
                <td>
                      Edit Theme
                </td>
                </tr>
              </table>
                <div>
                </div>
             

            <iframe src="personalCard.php" width="300" height="200">
                
            </iframe>        
            <br style="clear: both;" />
        </div>
    </body>
</html>
